angular.module('imsApp', ["ui.router", "ui.bootstrap", "ui.select", "ngSanitize", "ngAnimate", "ngLocale", 's.pagination', 'angularFileUpload', 'bootstrapLightbox', 'ngLocale','ngDraggable'])
    .config(['$stateProvider', '$urlRouterProvider', '$locationProvider', function ($stateProvider, $urlRouterProvider, $locationProvider) {
        $stateProvider.state('test', {
            url: "/test?a&b&c",
            views: {
                "container": {
                    templateUrl: "templates/test.html",
                    controller: 'testController'
                }
            }
        }).state('advManagement', {
            url: "/advManagement?pageNo&pageSize&startDay&endDay&advertiserId&campaignName",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/advManagement.html",
                    controller: 'advManagementController'
                }
            }
        }).state('campaigns', {
            url: "/campaigns?pageNo&pageSize&keyword&payType&status",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/campaigns.html",
                    controller: 'campaignsController'
                }
            }
        }).state('campaigns.detail', {
            url: "/campaigns-detail?campaignsId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/campaignsDetail.html",
                    controller: 'campaignsDetailController'
                }
            }
        }).state('campaigns.campaignsUpdate', {
            url: "/campaigns-campaignsUpdate?campaignsId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/campaignsUpdate.html",
                    controller: 'campaignsUpdateController'
                }
            }
        }).state('campaigns.statistics', {
            url: "/campaigns-statistics?campaignsId&timeType",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/campaignsStatistics.html",
                    controller: 'campaignsStatisticsController'
                }
            }
        }).state('campaigns.promotionGroup', {
            url: "/campaigns-promotion-group?campaignsId&advertiserId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/promotionGroup.html",
                    controller: 'promotionGroupController'
                }
            }
        }).state('campaigns.promotionGroup.detail', {
            url: "/campaigns-promotion-group-detail?groupId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/promotionGroupDetail.html",
                    controller: 'promotionDetailController'
                }
            }
        }).state('campaigns.promotionGroup.statistics', {
            url: "/campaigns-promotion-group-statistics?groupId&timeType",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/promotionGroupStatistics.html",
                    controller: 'promotionStatisticsController'
                }
            }
        }).state('campaigns.promotionGroup.creatives', {
            url: "/campaigns-creatives?groupId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/creatives.html",
                    controller: 'creativesController'
                }
            }
        }).state('campaigns.promotionGroup.creatives.detail', {
            url: "/campaigns-creatives-detail?creativeId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/creativesDetail.html",
                    controller: 'creativeDetailController'
                }
            }
        }).state('campaigns.promotionGroup.creatives.create', {
            url: "/campaigns-creatives-create",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/creativeCreate.html",
                    controller: 'creativesCreateAndUpdateController'
                }
            }
        }).state('campaigns.promotionGroup.creatives.update', {
            url: "/campaigns-creatives-update?creativeId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/creativeUpdate.html",
                    controller: 'creativesCreateAndUpdateController'
                }
            }
        }).state('advertisers', {
            url: "/advertisers?pageNo&pageSize&keyword&advertiserType&status",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/advertisers.html",
                    controller: 'advertisersController'
                }
            }
        }).state('advertisers.campaignNum', {
            url: "/advertisers?advertiserId&pageNo&pageSize&keyword&payType&status",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/campaigns.html",
                    controller: 'campaignsController'
                }
            }
        }).state('channels', {
            url: "/channels?pageNo&pageSize&keyword&status",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/channels.html",
                    controller: 'channelsController'
                }
            }
        }).state('channels.app', {
            url: "/channels-app?channelId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/app.html",
                    controller: 'appController'
                }
            }
        }).state('channels.statistics', {
            url: "/channels-statistics?channelId&timeType",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/channelStatistics.html",
                    controller: 'channelsStatisticsController'
                }
            }
        }).state('channels.detail', {
            url: "/channels-detail?channelId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/channelDetail.html",
                    controller: 'channelsDetailController'
                }
            }
        }) .state('advertisers.detail', {
            url: "/advertisers-detail?advertiserId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/advertisersDetail.html",
                    controller: 'advertisersCreateController'
                }
            }
        }).state('app', {
            url: "/app?pageNo&pageSize&keyword&appType&status&channelId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/app.html",
                    controller: 'appController'
                }
            }
        }).state('app.detail', {
            url: "/app-detail?appId&channelId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/appDetail.html",
                    controller: 'appDetailController'
                }
            }
        }).state('app.statistics', {
            url: "/app-statistics?appId&timeType&adStyle",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/appStatistics.html",
                    controller: 'appStatisticsController'
                }
            }
        }).state('cheatRt', {
            url: "/cheatRt?method&startDay&endDay&status&type&pageNo&pageSize",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/cheatRtList.html",
                    controller: 'cheatRtController'
                }
            }
        }).state('adContracts', {
            url: "/ad-contracts?pageNo&pageSize&contractType&shortName&payType&scheduleStart&scheduleEnd",
            views: {
                "container": {
                    templateUrl: "templates/contractsCenter/adContracts.html",
                    controller: 'adContractsController'
                }
            }
        }).state('adContracts.detail', {
            url: "/ad-contracts-detail?id",
            views: {
                "container": {
                    templateUrl: "templates/contractsCenter/adContractsDetail.html",
                    controller: 'adContractsDetailController'
                }
            }
        }).state('channelContracts', {
            url: "/channel-contracts?pageNo&pageSize&contractType&shortName&payType&scheduleStart&scheduleEnd",
            views: {
                "container": {
                    templateUrl: "templates/contractsCenter/channelContracts.html",
                    controller: 'channelContractsController'
                }
            }
        }).state('channelContracts.detail', {
            url: "/channel-contracts-detail?id",
            views: {
                "container": {
                    templateUrl: "templates/contractsCenter/channelContractsDetail.html",
                    controller: 'channelContractsDetailController'
                }
            }
        }).state('focus', {
            url: "/focus?pageNo&pageSize&startDay&endDay&type&mode",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/focus.html",
                    controller: 'focusController'
                }
            }
        }).state('copyScreen', {
            url: "/copy-screen?pageNo&pageSize&startDay&endDay&advertiserId&campaignName",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/copyScreen.html",
                    controller: 'copyScreenController'
                }
            }
        }).state('copyScreen.detail', {
            url: "/copy-screen-detail?campaignId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/copyScreenDetail.html",
                    controller: 'copyScreenDetailController'
                }
            }
        }).state('copyScreen.detail.view', {
            url: "/copy-screen-detail-view?appId",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/copyScreenView.html",
                    controller: 'copyScreenViewController'
                }
            }
        }).state('disallow', {
            url: "/disallow?pageNo&pageSize&startDay&endDay&type&mode",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/disallow.html",
                    controller: 'disallowController'
                }
            }
        }).state('adDataStatistics', {
            url: "/ad-data-statistics",
            views: {
                "container": {
                    templateUrl: "templates/dataCenter/adDataDayStatistics.html",
                    controller: 'adDataDayStatisticsController'
                }
            }
        }).state('cheatBatch', {
            url: "/cheatBatch?method&startDay&endDay&status&type&pageNo&pageSize",
            views: {
                "container": {
                    templateUrl: "templates/advertisementCenter/cheatBatchList.html",
                    controller: 'cheatBatchController'
                }
            }
        }).state('adDataAdvertiser', {
            url: "/ad-data-advertiser",
            views: {
                "container": {
                    templateUrl: "templates/dataCenter/adDataAdvertiser.html",
                    controller: 'adDataAdvertiserController'
                }
            }
        }).state('adDataChannel', {
            url: "/ad-data-channel",
            views: {
                "container": {
                    templateUrl: "templates/dataCenter/adDataChannel.html",
                    controller: 'adDataChannelController'
                }
            }
        }).state('log', {
            url: "/log?pageNo&pageSize",
            views: {
                "container": {
                    templateUrl: "templates/sysyemCenter/log.html",
                    controller: 'logController'
                }
            }
        }).state('indexes', {
            url: "/indexes",
            views: {
                "container": {
                    templateUrl: "templates/sysyemCenter/indexes.html",
                    controller: 'indexesController'
                }
            }
        }).state('advDataStatistics', {
            url: "/adv-data-statistics?startDay&endDay&adStyle&campaignId&pageNo&pageSize",
            views: {
                "container": {
                    templateUrl: "templates/adRole/advDataStatistics.html",
                    controller: 'advDataStatisticsController'
                }
            }
        }).state('channelDataStatistics', {
            url: "/channel-data-statistics?startDay&endDay&adStyle&appId&pageNo&pageSize",
            views: {
                "container": {
                    templateUrl: "templates/channelRole/channelDataStatistics.html",
                    controller: 'channelDataStatisticsController'
                }
            }
        }).state('realTimeDataStatistics', {
            url: "/real-time-data-statistics",
            views: {
                "container": {
                    templateUrl: "templates/dataCenter/realTimeData.html",
                    controller: 'realTimeDataController'
                }
            }
        }).state('wholeDataStatistics', {
            url: "/whole-data-statistics?startDay&endDay&adStyle&appId&pageNo&pageSize",
            views: {
                "container": {
                    templateUrl: "templates/dataCenter/wholeData.html",
                    controller: 'wholeDataController'
                }
            }
        }).state('building', {
            url: "/building",
            views: {
                "container": {
                    templateUrl: "templates/build.html",
                    controller: 'wholeDataController'
                }
            }
        })
       

    }])
